<template>
  <div class="prescription-container bs">
    <el-form label-width="80px" class="bg-cf pt-30">
      <el-row :gutter="100">
        <el-col :span="6">
          <el-form-item label="时间">
            <el-date-picker
              type="date"
              style="width: 100%"
              v-model="form.date1"
            ></el-date-picker>
          </el-form-item>
        </el-col>
        <!-- <el-col :span="6">
          <el-form-item label="处方">
            <el-select
              v-model="form.region"
              placeholder="请选择处方状态"
              style="width: 100%"
            >
              <el-option label="已开处方" value="shanghai"></el-option>
              <el-option label="未开处方" value="beijing"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="新老客户">
            <el-select
              v-model="form.region"
              placeholder="请选择"
              style="width: 100%"
            >
              <el-option label="新客户" value="shanghai"></el-option>
              <el-option label="老客户" value="beijing"></el-option>
            </el-select>
          </el-form-item>
        </el-col> -->
        <!-- <el-col :span="6">
          <div class="flex flex-end pr-30">
            <el-button type="primary">查询</el-button>
            <el-button>重置</el-button>
          </div>
        </el-col> -->
      </el-row>
    </el-form>
    <div class="content-box">
      <div class="content-header flex flex-jus flex-align-center bg-cf">
        <div class="header-left flex flex-align-center">
          <p class="day mr-6 fz-60 c-active">
            {{ $day(time).get('date') }}
          </p>
          <div class="day-info c9 fz-20">
            <p class="mb-3">
              {{
                ['周日', '周一', '周二', '周三', '周四', '周五', '周六'][
                  $day(time).day()
                ]
              }}
            </p>
            <p>
              {{ $day(time).get('month') + 1 }}/{{ $day(time).get('year') }}
            </p>
          </div>
        </div>
        <p>
          <span style="color: #666; font-size: 22px"
            >咨询未开处方<em style="color: #ff0000">10</em>人</span
          >
        </p>
      </div>
      <div class="content">
        <currentItem class="plr" v-for="(item, index) in 4" :key="index">
          <template #operation="">
            <div
              class="flex flex-align-center status fz-18"
              style="color: #c10707; float: right"
            >
              <span>预约失败</span>
            </div>
          </template>
        </currentItem>
        <el-pagination
          class="text-center pagination"
          background
          layout="prev, pager, next"
          :total="1000"
        >
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, reactive } from 'vue'
import currentItem from '@/views/main/home/cpns/currentItem.vue'

export default defineComponent({
  name: 'prescription',
  components: { currentItem },
  setup() {
    const form = reactive({
      date1: ''
    })
    return {
      form
    }
  }
})
</script>

<style lang="less" scoped>
.prescription-container {
  background-color: #f7f9fe;
  padding: 60px 80px 58px;
  height: 100vh;
  .content-box {
    .content-header {
      padding-left: 30px;
      padding-right: 73px;
      margin-bottom: 13px;
    }
    margin-top: 32px;
    padding-bottom: 26px;
    .plr {
      padding: 0 80px;
    }
    .pagination {
      margin-top: 20px;
    }
    .status::before {
      content: '';
      width: 10px;
      height: 10px;
      display: inline-block;
      margin-right: 10px;
      background-color: #c10707;
      border-radius: 100px;
    }
  }
}
</style>
